import { defineStore } from 'pinia'
interface Auth {
  id?: number
  state?: number
  type: number
}
export const useAuthStore = defineStore('atuh', {
  state: (): Auth => ({
    id: 0,
    state: 0,
    type: 0,
  }),
  actions: {
    setAtuh(id: number, state: number) {
      ;(this.id = id), (this.state = state)
    },
  },
  getters: {},
})
